package com.yx.china.project.service;
import com.yx.china.project.service.impl.PayServiceException;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(name = "pay-service",fallback = PayServiceException.class)
public interface PayService {
    @GetMapping(value = "/pay/ok/{id}")
    public String paymentInfo_OK(@PathVariable("id") Integer id);
    @GetMapping(value = "/pay/timeout/{id}")
    public String paymentInfo_TimeOut(@PathVariable("id") Integer id);
}
